var t = getApp();

Page({
    data: {
        texts: []
    },
    onLoad: function(t) {
        this.getData();
    },
    getData: function(a) {
        var n = this;
        t.network.post({
            url: t.url.listScheduleText,
            params: {},
            before: function() {
                wx.showNavigationBarLoading();
            },
            success: function(a) {
                1 == a.data.result ? n.setData({
                    texts: a.data.data.texts
                }) : t.util.showToast(a.data.message);
            },
            fail: function() {
                t.util.showToast("获取失败");
            },
            complete: function() {
                wx.hideNavigationBarLoading();
            }
        });
    },
    clickItem: function(t) {
        var a = getCurrentPages();
        a[a.length - 2].setData({
            content: t.currentTarget.dataset.content,
            textId: t.currentTarget.dataset.textid,
            needUpdate: !0
        }), wx.navigateBack({});
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});